package com.pug.product.mapper;

import com.pug.product.po.InventoryPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author RenGaoshuai
 * @date 2023/6/29 15:41
 * @description
 */
@Mapper
@Repository
public interface InventoryMapper {

    int insertInventory(InventoryPO po);

    int updateInventory(InventoryPO po);

    int updateInventoryByProductCode(@Param("productCode")String productCode,@Param("quantity")Integer quantity);

    InventoryPO selectInventoryByProductCode(@Param("productCode") String productCode);
}
